#region Namespace References

using System.Drawing;
using System.Windows.Forms;

#endregion

namespace DynConDevCorp.OpenArch.SmartData.WinForms.ControlBinders
{
    internal class SmartLabelBinder : SmartControlBinder<Label>
    {
        #region Protected Instance Methods

        protected override void ConfigureContainingControl()
        {
            ContainingControl.BackColor = SystemColors.Control;
            ContainingControl.BorderStyle = BorderStyle.None;
        }

        protected override void SetDisplayValue(string value)
        {
            TypedBoundControl.Text = value;
        }

        #endregion
    }
}